package com.cskaoyan.user.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class UserRegisterRequest {

    @Length(min = 6, message = "用户名至少6位")
    private String userName;
    @Length(min = 6, message = "密码至少6位")
    private String userPwd;
    @Pattern(regexp = "\\w+.@\\w+\\.com", message = "邮箱格式不正确")
    private String email;
    @NotEmpty(message = "验证码不能为空")
    private String captcha;

}
